<!DOCTYPE html>
<html>
    <head>
        <title>
        </title>
        <link href="/layui/css/layui.css" media="all" rel="stylesheet">
        </link>
    </head>
    <body>
        <script src="/layui/layui.js">
        </script>
        <form class="layui-form">
            <table class="layui-table" id="demo" lay-filter="demo">
                    <col width="150">
                        <col width="200">
                            <col>
                            </col>
                        </col>
                    </col>
                <thead>
                    <tr>
                        <th>
                            项目
                        </th>
                        <th>
                            本月数
                        </th>
                        <th>
                            上月数
                        </th>
                        <th>
                            上年同月数
                        </th>
                        <th>
                            本年累计数
                        </th>
                        <th>
                            年计划
                        </th>
                        <th>
                            占比计划
                        </th>
                        <th width="30%">
                            备注
                        </th>
                    </tr>
                </thead>
                <tbody class="data-tbody">
                    <!-- 营业收入开始 -->
                    <tr class="business_income">
                        <td>营业收入</td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income month" lay-data="business_income" lay-verify="number" name="business_income_month" placeholder="请输入" required="" type="text" value="0"/>
                        </td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income last_month" lay-data="business_income" lay-verify="number" name="business_income_last_month" placeholder="请输入" required="" type="text" value="0"/>
                        </td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income last_year_month" lay-data="business_income" lay-verify="number" name="business_income_last_year_month" placeholder="请输入" required="" type="text" value="0"/>
                        </td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income in_year" lay-data="business_income" lay-verify="number" name="business_income_in_year" placeholder="请输入" required="" type="text" value="0"/>
                        </td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income year_plan" lay-data="business_income" lay-verify="number" name="business_income_year_plan" placeholder="请输入" required="" type="text" value="0"/>
                        </td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income rate" lay-data="business_income" lay-verify="number" name="business_income_rate" placeholder="请输入" required="" type="text" value="0"/>
                        </td>
                        <td>
                            <input autocomplete="off" class="layui-input business_income remark" lay-data="business_income" name="business_income_remark" placeholder="请输入" required="" type="text" value=""/>
                        </td>
                    </tr>
                    <!-- 营业收入结束 -->
                    <!-- 毛利开始 -->
                    <tr class="gross_profit">
                        <td>毛利</td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input gross_profit" lay-data="gross_profit" lay-verify="number" name="gross_profit" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 毛利结束 -->
                    <!-- 营业收支净额开始 -->
                    <tr class="business_income_init">
                        <td>营业收支净额</td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_income_init" lay-data="business_income_init" lay-verify="number" name="business_income_init" placeholder="请输入" required="" type="text" value=""/></td>                        
                    </tr>
                    <!-- 营业收支净额结束 -->
                    <!-- 营业税金及附加开始 -->
                    <tr class="business_tax">
                        <td>营业税金及附加</td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input business_tax" lay-data="business_tax" lay-verify="number" name="business_tax" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 营业税金及附加结束 -->
                    <!-- 费用总额结束 -->
                    <tr class="total_costs">
                        <td>费用总额</td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input total_costs" lay-data="total_costs" lay-verify="number" name="total_costs" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    </tr>
                    <!-- 费用总额开始 -->
                    <!-- 其中：能源费用开始 -->
                    <tr class="energy_costs">
                        <td>其中：能源费用</td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input energy_costs" lay-data="energy_costs" lay-verify="number" name="energy_costs" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 其中：能源费用结束 -->
                    <!-- 人力资源费用开始 -->
                    <tr class="human_resources">
                        <td>人力资源费用</td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input human_resources" lay-data="human_resources" lay-verify="number" name="human_resources" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 人力资源费用结束 -->
                    <!-- 其他费用开始 -->
                    <tr class="other_cousts">
                        <td>其他费用</td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input other_cousts" lay-data="other_cousts" lay-verify="number" name="other_cousts" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 其他费用结束 -->
                    <!-- 计提费用开始 -->
                    <tr class="accrued_expenses">
                        <td>计提费用</td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input accrued_expenses" lay-data="accrued_expenses" lay-verify="number" name="accrued_expenses" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 计提费用结束 -->
                    <!-- 净现金流开始 -->
                    <tr class="cash_init">
                        <td>净现金流</td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_init" lay-data="cash_init" lay-verify="number" name="cash_init" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 净现金流结束 -->
                    <!-- 加计提费用开始 -->
                    <tr class="add_costs">
                        <td>加计提费用</td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_costs" lay-data="add_costs" lay-verify="number" name="add_costs" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 加计提费用结束 -->
                    <!-- 加计提利息开始 -->
                    <tr class="add_tax">
                        <td>加计提利息</td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input add_tax" lay-data="add_tax" lay-verify="number" name="add_tax" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 加计提利息结束 -->
                    <!-- 投资收回现金流 -->
                    <tr class="cash_flow_recovered">
                        <td> 投资收回现金流</td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input cash_flow_recovered" lay-data="cash_flow_recovered" lay-verify="number" name="cash_flow_recovered" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 投资收回现金流 -->
                    <!-- 回报率 -->
                    <tr class="rate_of_returns">
                        <td>回报率</td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input rate_of_returns" lay-data="rate_of_returns" lay-verify="number" name="rate_of_returns" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 回报率 -->
                    <!-- 投资额 -->
                    <tr class="investment_amount">
                        <td>投资额</td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input investment_amount" lay-data="investment_amount" lay-verify="number" name="investment_amount" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 投资额 -->
                    <!-- 记帐余额/占比 -->
                    <tr class="balance_rate">
                        <td>记帐余额/占比</td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input balance_rate" lay-data="balance_rate" name="balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 记帐余额/占比 -->
                    <!-- 存货余额/占比 -->
                    <tr class="stock_balance_rate">
                        <td>存货余额/占比</td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                        <td><input autocomplete="off" class="layui-input stock_balance_rate" lay-data="stock_balance_rate" name="stock_balance_rate" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 存货余额/占比 -->
                    <!-- 发票使用率 -->
                    <tr class="invoice_rate">
                        <td>发票使用率</td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input invoice_rate" lay-data="invoice_rate" lay-verify="number" name="invoice_rate" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 发票使用率 -->
                    <!-- 月末工人数 -->
                    <tr class="number_of_workers">
                        <td>月末工人数</td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value="0"/></td>
                        <td><input autocomplete="off" class="layui-input number_of_workers" lay-data="number_of_workers" lay-verify="number" name="number_of_workers" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <!-- 月末工人数 -->
                </tbody>
            </table>
            <table class="layui-table" id="remark" lay-filter="remark">
                <thead>
                    <tr>
                        <th width="5">序号</th>
                        <th width="15">说明</th>
                        <th width="85%">输入</th>
                    </tr>
                </thead>
                <tbody class="data-remark">
                    <tr class="income_remark">
                        <td>1</td>
                        <td>营业收入异动</td>
                        <td><input autocomplete="off" class="layui-input" lay-data="income_remark" lay-verify="number" name="income_remark" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <tr class="gross_profit_remark">
                        <td>2</td>
                        <td>毛利率异动</td>
                        <td><input autocomplete="off" class="layui-input " lay-data="gross_profit_remark" lay-verify="number" name="gross_profit_remark" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <tr class="tax_remark">
                        <td>3</td>
                        <td>税金</td>
                        <td><input autocomplete="off" class="layui-input " lay-data="tax_remark" lay-verify="number" name="tax_remark" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <tr class="special_remark">
                        <td>4</td>
                        <td>特殊费用</td>
                        <td><input autocomplete="off" class="layui-input " lay-data="special_remark" lay-verify="number" name="special_remark" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                    <tr class="other_remark">
                        <td>5</td>
                        <td>营业外收支异动</td>
                        <td><input autocomplete="off" class="layui-input " lay-data="other_remark" lay-verify="number" name="other_remark" placeholder="请输入" required="" type="text" value=""/></td>
                    </tr>
                </tbody>
            </table>
            {{csrf_field()}}
            <!--             <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn submit" lay-filter="formDemo" lay-submit="">
                        立即提交
                    </button>
                    <button class="layui-btn layui-btn-primary" type="reset">
                        重置
                    </button>
                </div>
            </div> -->
        </form>
        <button class="layui-btn sub">
            立即提交
        </button>
    </body>
</html>
<script>
    //Demo
    layui.use(['form','table'], function () {
        var table = layui.table;
        var form = layui.form;

  //第一个实例
  table.init({
    elem: '#demo'
    ,height: 312
    ,defaultToolbar:['exports']
  });

        //监听提交
        $('.sub').on('click', function() {
            layer.msg('已提交');
            //layer.msg(JSON.stringify(data.field));
            var business_income = ['营业收入'];
            var gross_profit = ['毛利'];
            var business_income_init = ['营业收支净额'];
            var business_tax = ['营业税金及附加'];
            var total_costs = ['费用总额'];
            var energy_costs = ['能源费用'];
            var human_resources = ['人力资源费用'];
            var other_cousts = ['其他费用'];
            var accrued_expenses = ['计提费用'];
            var cash_init = ['净现金流'];
            var add_costs = ['加计提费用'];
            var add_tax = ['利息'];
            var cash_flow_recovered = ['投资收回现金流'];
            var rate_of_returns = ['回报率'];
            var investment_amount = ['投资额'];
            var balance_rate = ['记帐余额/占比'];
            var stock_balance_rate = ['存货余额/占比'];
            var invoice_rate = ['发票使用率'];
            var number_of_workers = ['月末工人数'];

            var income_remark = ['营业收入异动'];
            var gross_profit_remark = ['毛利率异动'];
            var tax_remark = ['税金'];
            var special_remark = ['特殊费用'];
            var other_remark = ['营业外收支异动'];

            // 组合表数据
            $('input.business_income').each(function () {
                var val = $(this).val();
                business_income.push(val);
            });
            var sum_data = [];
            $('.data-tbody').children('tr').each(function () {
                var data = [];
                var calssName = $(this).attr('class');
                // 去掉空格 去掉换行符
                var first = $('.'+ calssName +':first').text().replace(/\ +/g,"").replace(/[\r\n]/g,"");
                data.push(first);
                $('.'+ calssName +':gt(0)').each(function () {
                    var val = $(this).val();
                    data.push(val);
                });
                sum_data.push(data);
            });

            // 组合说明数据
            $('.data-remark').children('tr').each(function () {
                var calssName = $(this).attr('class');
                // 去掉空格 去掉换行符
                var first = $('.'+ calssName);
                var data = [];
                $('.'+ calssName).children('td:lt(2)').each(function () {
                    var thead = $(this).text().replace(/\ +/g,"").replace(/[\r\n]/g,"");
                    data.push(thead);
                });

                $('.'+ calssName).children('td:eq(2)').each(function () {
                    var input = $(this).children('input').val();
                    data.push(input);
                });

                sum_data.push(data);
            });

            table.exportFile(['项目','本月数','上月数','上年同月数','本年累计数', '年计划', '占比计划', '备注'], sum_data, '主要指标表.csv'); //默认导出 csv，也可以为：xls
        });
    });
</script>